package com.wangm.easyes.index.entity;

import lombok.Data;
import org.dromara.easyes.annotation.IndexField;
import org.dromara.easyes.annotation.IndexName;
import org.dromara.easyes.annotation.rely.FieldType;

/**
 * 用于测试的索引
 *
 * @author wangmeng
 * @since 2024/8/18
 */
@Data
@IndexName
public class Document {

    /**
     * es中的唯一id
     */
    private String id;
    /**
     * 文档标题
     */
    private String title;
    /**
     * 文档内容
     */
    @IndexField(fieldType = FieldType.TEXT)
    private String content;

}
